package view.leeds;

import java.awt.Dimension;

import javax.swing.JPanel;
import javax.swing.SpringLayout;
import javax.swing.JLabel;
import javax.swing.JComboBox;
import javax.swing.JTextField;
import javax.swing.JTextArea;
import java.awt.Font;
import javax.swing.border.TitledBorder;
import java.awt.Color;

public class RequirementsPanel extends JPanel 
{
	private JTextField textFieldReference;
	private JTextField tfbudget;
	private JComboBox comboBoxRequirement;
	private JComboBox comboBoxInformationBy;
	private JTextArea textAreaFeedback;
	
	public RequirementsPanel() 
	{
		setBorder(new TitledBorder(null, "Requirement", TitledBorder.LEADING, TitledBorder.TOP, null, Color.LIGHT_GRAY));
		setPreferredSize(new Dimension(285, 450));
		SpringLayout springLayout = new SpringLayout();
		setLayout(springLayout);
		
		JLabel lblRequirement = new JLabel("Requirement");
		lblRequirement.setFont(new Font("MS Reference Sans Serif", Font.PLAIN, 13));
		springLayout.putConstraint(SpringLayout.NORTH, lblRequirement, 30, SpringLayout.NORTH, this);
		springLayout.putConstraint(SpringLayout.WEST, lblRequirement, 30, SpringLayout.WEST, this);
		add(lblRequirement);
		
		comboBoxRequirement = new JComboBox();
		comboBoxRequirement.setFont(new Font("MS Reference Sans Serif", Font.PLAIN, 13));
		springLayout.putConstraint(SpringLayout.NORTH, comboBoxRequirement, 6, SpringLayout.SOUTH, lblRequirement);
		springLayout.putConstraint(SpringLayout.WEST, comboBoxRequirement, 0, SpringLayout.WEST, lblRequirement);
		add(comboBoxRequirement);
		comboBoxRequirement.setPreferredSize(new Dimension(220, 23));
		
		JLabel lblBudget = new JLabel("Budget");
		lblBudget.setFont(new Font("MS Reference Sans Serif", Font.PLAIN, 13));
		springLayout.putConstraint(SpringLayout.NORTH, lblBudget, 30, SpringLayout.SOUTH, comboBoxRequirement);
		springLayout.putConstraint(SpringLayout.WEST, lblBudget, 30, SpringLayout.WEST,this);
		add(lblBudget);
		
		tfbudget = new JTextField();
		tfbudget.setFont(new Font("MS Reference Sans Serif", Font.PLAIN, 13));
		springLayout.putConstraint(SpringLayout.NORTH, tfbudget, 6, SpringLayout.SOUTH, lblBudget);
		springLayout.putConstraint(SpringLayout.WEST, tfbudget, 30, SpringLayout.WEST,this);
		add(tfbudget);
		tfbudget.setPreferredSize(new Dimension(220, 23));
		
		JLabel lblInformationBy = new JLabel("How do you Know about Us?");
		lblInformationBy.setFont(new Font("MS Reference Sans Serif", Font.PLAIN, 13));
		springLayout.putConstraint(SpringLayout.NORTH, lblInformationBy, 30, SpringLayout.SOUTH, tfbudget);
		springLayout.putConstraint(SpringLayout.WEST, lblInformationBy, 30, SpringLayout.WEST,this);
		add(lblInformationBy);
		
		comboBoxInformationBy = new JComboBox();
		comboBoxInformationBy.setFont(new Font("MS Reference Sans Serif", Font.PLAIN, 13));
		springLayout.putConstraint(SpringLayout.NORTH, comboBoxInformationBy, 6, SpringLayout.SOUTH, lblInformationBy);
		springLayout.putConstraint(SpringLayout.WEST, comboBoxInformationBy, 30, SpringLayout.WEST,this);
		add(comboBoxInformationBy);
		comboBoxInformationBy.setPreferredSize(new Dimension(220, 23));
		
		JLabel lblReference = new JLabel("Any References?");
		lblReference.setFont(new Font("MS Reference Sans Serif", Font.PLAIN, 13));
		springLayout.putConstraint(SpringLayout.NORTH, lblReference, 30, SpringLayout.SOUTH, comboBoxInformationBy);
		springLayout.putConstraint(SpringLayout.WEST, lblReference, 30, SpringLayout.WEST,this);
		add(lblReference);
		
		textFieldReference = new JTextField();
		textFieldReference.setFont(new Font("MS Reference Sans Serif", Font.PLAIN, 13));
		springLayout.putConstraint(SpringLayout.NORTH, textFieldReference, 6, SpringLayout.SOUTH, lblReference);
		springLayout.putConstraint(SpringLayout.WEST, textFieldReference, 30, SpringLayout.WEST,this);
		add(textFieldReference);
		textFieldReference.setColumns(20);
		
		JLabel lblFeedback = new JLabel("Feed Back");
		lblFeedback.setFont(new Font("MS Reference Sans Serif", Font.PLAIN, 13));
		springLayout.putConstraint(SpringLayout.NORTH, lblFeedback, 30, SpringLayout.SOUTH, textFieldReference);
		springLayout.putConstraint(SpringLayout.WEST, lblFeedback, 30, SpringLayout.WEST, this);
		add(lblFeedback);
		
		textAreaFeedback = new JTextArea();
		textAreaFeedback.setFont(new Font("MS Reference Sans Serif", Font.PLAIN, 13));
		textAreaFeedback.setColumns(20);
		textAreaFeedback.setRows(3);
		springLayout.putConstraint(SpringLayout.NORTH, textAreaFeedback, 6, SpringLayout.SOUTH, lblFeedback);
		springLayout.putConstraint(SpringLayout.WEST, textAreaFeedback, 30, SpringLayout.WEST, this);
		add(textAreaFeedback);
	}

	public JTextField getTextFieldReference() {
		return textFieldReference;
	}

	public void setTextFieldReference(JTextField textFieldReference) {
		this.textFieldReference = textFieldReference;
	}

	

	

	public JTextField getTfbudget() {
		return tfbudget;
	}

	public void setTfbudget(JTextField tfbudget) {
		this.tfbudget = tfbudget;
	}

	public JComboBox getComboBoxRequirement() {
		return comboBoxRequirement;
	}

	public void setComboBoxRequirement(JComboBox comboBoxRequirement) {
		this.comboBoxRequirement = comboBoxRequirement;
	}

	public JComboBox getComboBoxInformationBy() {
		return comboBoxInformationBy;
	}

	public void setComboBoxInformationBy(JComboBox comboBoxInformationBy) {
		this.comboBoxInformationBy = comboBoxInformationBy;
	}

	public JTextArea getTextAreaFeedback() {
		return textAreaFeedback;
	}

	public void setTextAreaFeedback(JTextArea textAreaFeedback) {
		this.textAreaFeedback = textAreaFeedback;
	}
	
	
}
